package day03;

import java.util.Scanner;

public class ScoreTransfer {
	public static void main(String[] args) {
		int p_score;
		char d_score;
		Scanner sca = new Scanner(System.in);
		System.out.println("Please enter your score:");
		p_score = sca.nextInt();
		switch (p_score / 10) {
		case 10:
			d_score = 'A';
			break;
		case 9:
			d_score = 'A';
			break;
		case 8:
			d_score = 'B';
			break;
		case 7:
			d_score = 'C';
			break;
		case 6:
			d_score = 'D';
			break;
		default:
			d_score = 'E';
			break;
		}
		System.out.println("你的分值等级是：" + d_score);
	}
}
